<?php
/**
 * @author shenjun
 * @CreateDate 2011-09-25
 * 前台系统继承的控制器
 */
class IController extends FController {
	
	public function init()
	{
		parent::init();
		$this->layout = 'application.views.layouts.main';
		Yii::app()->setHomeUrl('site/index');
		$language = Yii::app()->session->offSetGet( "FrontLanguage" );
		if ( is_null( $language ) || empty( $language ) ){
			Yii::app()->session->add( 'FrontLanguage' , Yii::app()->params['defaultLanguage'] );
		}
		Yii::app()->clientScript->registerCoreScript('jquery');
	}
	
}